Description
The Debian python-rdflib-tools 4.2.2-1 package for RDFLib 4.2.2 has CLI tools that can load Python modules from the current working directory, allowing code injection, because "python -m" looks in this directory, as demonstrated by rdf2dot. This issue is specific to use of the debian/scripts directory.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rdflib | 4.2.2-2 | — |
| Debian 13 | rdflib | 4.2.2-2 | — |
| Debian 12 | rdflib | 4.2.2-2 | — |
| Debian 9 | rdflib | 4.2.1-2+deb9u1 | DLA-2861-1 |
| Debian 8 | rdflib | 4.1.2-3+deb8u1 | DLA-1717-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | rdflib | No fix yet | — |
| Ubuntu 16.04 LTS | rdflib | 4.1.2-3+deb8u1build0.16.04.1 | USN-4535-1 |
Advisories 3
- USN-4535-1 rdflib vulnerability Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-1717-1 rdflib - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2861-1 rdflib - security update Debian Security (DSA / DLA) · Mar 9, 2026