Skip to content

Commit 02e2586

Browse files
authored
feat(checker): add exiftags (#5329)
Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent 5d45b8e commit 02e2586

File tree

5 files changed

+46
-0
lines changed

5 files changed

+46
-0
lines changed

cve_bin_tool/checkers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
"emacs",
106106
"erlang_otp",
107107
"exfatprogs",
108+
"exiftags",
108109
"exim",
109110
"exiv2",
110111
"f2fs_tools",

cve_bin_tool/checkers/exiftags.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (C) 2025 Orange
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
5+
"""
6+
CVE checker for exiftags
7+
8+
https://www.cvedetails.com/product/12752/Aertherwide-Exiftags.html?vendor_id=7551
9+
10+
"""
11+
from __future__ import annotations
12+
13+
from cve_bin_tool.checkers import Checker
14+
15+
16+
class ExiftagsChecker(Checker):
17+
CONTAINS_PATTERNS: list[str] = []
18+
FILENAME_PATTERNS: list[str] = []
19+
VERSION_PATTERNS = [r"Exif[a-z \.]*\r?\n([0-9]+\.[0-9]+)"]
20+
VENDOR_PRODUCT = [("aertherwide", "exiftags")]
12.1 KB
Binary file not shown.
17.3 KB
Binary file not shown.

test/test_data/exiftags.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (C) 2025 Orange
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
mapping_test_data = [
5+
{
6+
"product": "exiftags",
7+
"version": "1.01",
8+
"version_strings": ["Exif comment in the specified files.\n1.01"],
9+
}
10+
]
11+
package_test_data = [
12+
{
13+
"url": "http://rpmfind.net/linux/dag/redhat/el6/en/i386/dag/RPMS/",
14+
"package_name": "exiftags-1.01-1.el6.rf.i686.rpm",
15+
"product": "exiftags",
16+
"version": "1.01",
17+
"other_products": ["gcc"],
18+
},
19+
{
20+
"url": "http://ftp.debian.org/debian/pool/main/e/exiftags/",
21+
"package_name": "exiftags_1.01-7_arm64.deb",
22+
"product": "exiftags",
23+
"version": "1.01",
24+
},
25+
]

0 commit comments

Comments
 (0)