mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-21 20:19:33 +00:00
dool: patch CVE-2026-56651
Details: https://nvd.nist.gov/vuln/detail/cve-2026-56651 Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
This commit is contained in:
1 parent
cb309d1197
commit
2e1445decd
2 files changed
+50
-1
No files matched your search
@@ -0,0 +1,47 @@
|
|||||||
|
From f5eb4fbf3977d919a2e9da8b73985a29d2878e56 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Micha=C5=82=20Majchrowicz?= <sectroyer@gmail.com>
|
||||||
|
Date: Thu, 18 Jun 2026 10:52:27 +0200
|
||||||
|
Subject: [PATCH] Neutralize formula-prefixed CSV output
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
Signed-off-by: Michał Majchrowicz <sectroyer@gmail.com>
|
||||||
|
(cherry picked from commit d5aa93b3d1939a83b2b10a7cd8af3c819930aea1)
|
||||||
|
|
||||||
|
CVE: CVE-2026-56651
|
||||||
|
Upstream-Status: Backport [https://github.com/scottchiefbaker/dool/commit/d5aa93b3d1939a83b2b10a7cd8af3c819930aea1]
|
||||||
|
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
|
||||||
|
---
|
||||||
|
dool | 11 ++++++++++-
|
||||||
|
1 file changed, 10 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/dool b/dool
|
||||||
|
index 634ed9d..fc1015d 100755
|
||||||
|
--- a/dool
|
||||||
|
+++ b/dool
|
||||||
|
@@ -3030,7 +3030,10 @@ def perform(update):
|
||||||
|
|
||||||
|
# Prep the line for the CSV file
|
||||||
|
if op.output and step == op.delay:
|
||||||
|
- oline = oline + o.showcsv() + o.showcsvend(totlist, vislist)
|
||||||
|
+ csv_cell = o.showcsv()
|
||||||
|
+ if o.type == 's' and len(o.vars) == 1:
|
||||||
|
+ csv_cell = csv_quote_string_cell(csv_cell)
|
||||||
|
+ oline = oline + csv_cell + o.showcsvend(totlist, vislist)
|
||||||
|
|
||||||
|
### Put the output in the csv file
|
||||||
|
if op.output and step == op.delay:
|
||||||
|
@@ -3170,6 +3173,12 @@ def file_slurp(filename, size = -1):
|
||||||
|
|
||||||
|
return ret
|
||||||
|
|
||||||
|
+def csv_quote_string_cell(text):
|
||||||
|
+ "Quote free-form CSV string cells and neutralize spreadsheet formulas"
|
||||||
|
+ if text and text[0] in ('=', '+', '-', '@'):
|
||||||
|
+ text = "'" + text
|
||||||
|
+ return '"' + text.replace('"', '""') + '"'
|
||||||
|
+
|
||||||
|
# Make human readable device names that are shorter
|
||||||
|
#
|
||||||
|
# Example mappings:
|
||||||
@@ -9,7 +9,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464"
|
|||||||
DEPENDS += "asciidoc-native xmlto-native"
|
DEPENDS += "asciidoc-native xmlto-native"
|
||||||
RDEPENDS:${PN} += "python3-core python3-misc python3-resource python3-shell python3-six python3-unixadmin"
|
RDEPENDS:${PN} += "python3-core python3-misc python3-resource python3-shell python3-six python3-unixadmin"
|
||||||
|
|
||||||
SRC_URI = "git://github.com/scottchiefbaker/dool.git;branch=next;protocol=https;tag=v${PV}"
|
SRC_URI = "git://github.com/scottchiefbaker/dool.git;branch=next;protocol=https;tag=v${PV} \
|
||||||
|
file://CVE-2026-56651.patch \
|
||||||
|
"
|
||||||
|
|
||||||
SRCREV = "b74503e2dfbca8ef01c284d40aa77dc82be308b9"
|
SRCREV = "b74503e2dfbca8ef01c284d40aa77dc82be308b9"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user