Skip to main content
EPSS 0.5%top 59%

Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

0
High
Published: 07/22/2026 (07/22/2026, 21:23:57 UTC)
Source: GCVE Database
Vendor/Project: Red Hat Product Security
Product: Red Hat

Description

An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code. To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates. Jinja's sandbox does catch calls to `str.format` and ensures they don't escape the sandbox. However, it's possible to use the `|attr` filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment's attribute lookup.

Affected software

Homebrewmore threats →ghsa
locust
pkg:brew/locust
Affected versions
>=2.2.1 <2.33.0_1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/14/2026, 22:55:27 UTC

Technical Analysis

CVE-2025-27516 is a vulnerability in the Jinja2 templating engine used by fence-agents packages in Red Hat products. It allows a sandbox breakout through the attr filter when selecting the format method, potentially enabling code execution beyond the intended sandbox restrictions. The fence-agents packages manage remote power control for cluster nodes, and this vulnerability could impact automation and cluster management environments. Red Hat has issued security advisories RHSA-2025:2664 and RHSA-2025:2688 detailing the issue and providing updated packages to fix the vulnerability. Affected products include Red Hat Enterprise Linux 9.4 Extended Update Support and Red Hat Ansible Automation Platform Execution Environments across multiple CPU architectures (x86_64, ppc64le, aarch64, s390x). No active exploitation has been reported to date.

Potential Impact

The vulnerability allows a Jinja2 sandbox breakout in the fence-agents packages, which could lead to unintended code execution within the context of automation and cluster management scripts. This may allow an attacker with access to the affected system to bypass sandbox restrictions and execute arbitrary code. The impact is rated as high severity by Red Hat. No known exploits in the wild have been reported, but the potential for elevated privileges or disruption in cluster management exists if exploited.

Mitigation Recommendations

Red Hat has released official security updates addressing CVE-2025-27516 for affected fence-agents packages and related components. Users should apply these updates promptly to remediate the vulnerability. Detailed instructions and updated packages are available in Red Hat advisories RHSA-2025:2664 and RHSA-2025:2688. No additional mitigation steps are required beyond applying the official patches.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Csaf Category
csaf_security_advisory
Csaf Version
2.0
Publisher
Red Hat Product Security
Advisory Id
RHSA-2025:4408
Cve Count
1

Threat ID: 6a1f4e89e29bf47b5008378d

Added to database: 06/02/2026, 21:43:37 UTC

Last enriched: 08/14/2026, 22:55:27 UTC

Last updated: 10/06/2026, 18:48:15 UTC

Views: 187

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses