CVE catalog

CVE-2021-4041

ansible-runner: CVE-2021-4041

[CVE catalog]

Severity
High · CVSS 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.33% · Oct 25, 2026

A flaw was found in ansible-runner. An improper escaping of the shell command, while calling the ansible_runner.interface.run_command, can lead to parameters getting executed as host's shell command. A developer could unintentionally write code that gets executed in the host rather than the virtual environment.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianansible-runnersid2.4.3-2fixed
Debianansible-runnerforky2.4.3-2fixed
Debianansible-runnertrixie2.4.1-1fixed
Debianansible-runnerbookworm2.3.1-2fixed
Ubuntuansible-runner22.041.4.6-1vulnerable
Ubuntuansible-runner22.041.4.6-1.1vulnerable
Ubuntuansible-runner22.042.1.1-1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianansible-runnersourcesid2.1.1-1not yet assignedNot reportedNot reported
Debianansible-runnersourceforky2.1.1-1not yet assignedNot reportedNot reported
Debianansible-runnersourcetrixie2.1.1-1not yet assignedNot reportedNot reported
Debianansible-runnersourcebookworm2.1.1-1not yet assignedNot reportedNot reported
Ubuntuansible-runnerdeb22.042.1.1-1Not reportedUBUNTU-CVE-2021-4041Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [ansible-runner]

    Details (2)
    • 2.3.1-2 · all · bookworm

      Fixed · Fixed: 2.1.1-1

      dsa · ansible-runner · debian · bookworm; dsa · ansible-runner · debian · 12

    • 2.3.1-2 · all · bookworm

      Fixed · Fixed: 2.1.1-1

      dsa · ansible-runner · debian · bookworm; dsa · ansible-runner · debian · 12

  • Source package: [ansible-runner]

    Details (2)
    • 2.3.1-2 · all · bookworm

      Fixed · Fixed: 2.1.1-1

      dsa · ansible-runner · debian · bookworm; dsa · ansible-runner · debian · 12

    • 2.3.1-2 · all · bookworm

      Fixed · Fixed: 2.1.1-1

      dsa · ansible-runner · debian · bookworm; dsa · ansible-runner · debian · 12

[Debian 13 (Trixie)]

  • Source package: [ansible-runner]

    Details (2)
    • 2.4.1-1 · all · trixie

      Fixed · Fixed: 2.1.1-1

      dsa · ansible-runner · debian · 13

    • 2.4.1-1 · all · trixie

      Fixed · Fixed: 2.1.1-1

      dsa · ansible-runner · debian · 13

  • Source package: [ansible-runner]

    Details (2)
    • 2.4.1-1 · all · trixie

      Fixed · Fixed: 2.1.1-1

      dsa · ansible-runner · debian · 13

    • 2.4.1-1 · all · trixie

      Fixed · Fixed: 2.1.1-1

      dsa · ansible-runner · debian · 13

Observed:

References