Skip to main content

A flaw was found in the OCAPI modules (ocapi_command, ocapi_info) of the community.general Ansible collection. (CVE-2026-87872)

0
Medium
Published: 09/09/2026 (09/09/2026, 17:17:00 UTC)
Source: GCVE Database
Product: ansible

Description

A vulnerability in the OCAPI modules (ocapi_command, ocapi_info) of the community.general Ansible collection disables TLS certificate validation on every request. The modules do not provide an option to re-enable certificate validation while sending HTTP Basic-Auth credentials to an HTTPS endpoint. This flaw allows a network attacker positioned between the Ansible controller and the OCAPI-managed device to intercept and tamper with communications and capture credentials.

CVSS v3.1

Score 6.8medium

Attack Vector
Adjacent Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected software

Ubuntu:Pro:14.04:LTSmore threats →ghsa
ansible
pkg:deb/ubuntu/ansible?arch=source&distro=esm-infra-legacy/trusty
Affected versions
=1.1+dfsg-1=1.3.4+dfsg-1=1.4.0+dfsg-1=1.4.1+dfsg-1=1.4.3+dfsg-1=1.4.4+dfsg-1=1.5.4+dfsg-1=1.5.4+dfsg-1ubuntu0.1~esm1=1.5.4+dfsg-1ubuntu0.1~esm2=1.5.4+dfsg-1ubuntu0.1~esm3
Ubuntu:Pro:16.04:LTSmore threats →ghsa
ansible
pkg:deb/ubuntu/ansible?arch=source&distro=esm-apps/xenial
Affected versions
=1.9.2+dfsg-2=1.9.4-1=2.0.0.2-2=2.0.0.2-2ubuntu1=2.0.0.2-2ubuntu1.1=2.0.0.2-2ubuntu1.2=2.0.0.2-2ubuntu1.3=2.0.0.2-2ubuntu1.3+esm1=2.0.0.2-2ubuntu1.3+esm2=2.0.0.2-2ubuntu1.3+esm3=2.0.0.2-2ubuntu1.3+esm4=2.0.0.2-2ubuntu1.3+esm5=2.0.0.2-2ubuntu1.3+esm6
Ubuntu:Pro:18.04:LTSmore threats →ghsa
ansible
pkg:deb/ubuntu/ansible?arch=source&distro=esm-apps/bionic
Affected versions
=2.3.1.0+dfsg-2=2.5.0+dfsg-1=2.5.1+dfsg-1=2.5.1+dfsg-1ubuntu0.1=2.5.1+dfsg-1ubuntu0.1+esm1=2.5.1+dfsg-1ubuntu0.1+esm2=2.5.1+dfsg-1ubuntu0.1+esm3=2.5.1+dfsg-1ubuntu0.1+esm4=2.5.1+dfsg-1ubuntu0.1+esm5
Ubuntu:Pro:20.04:LTSmore threats →ghsa
ansible
pkg:deb/ubuntu/ansible?arch=source&distro=esm-apps/focal
Affected versions
=2.8.3+dfsg-1=2.8.6+dfsg-1=2.9.2+dfsg-1=2.9.4+dfsg-1=2.9.6+dfsg-1=2.9.6+dfsg-1ubuntu0.1~esm1=2.9.6+dfsg-1ubuntu0.1~esm2=2.9.6+dfsg-1ubuntu0.1~esm3
Ubuntu:22.04:LTSmore threats →ghsa
ansible-core
pkg:deb/ubuntu/ansible-core?arch=source&distro=jammy
Affected versions
=2.12.0-1=2.12.0-1ubuntu0.1
Ubuntu:Pro:22.04:LTSmore threats →ghsa
ansible
pkg:deb/ubuntu/ansible?arch=source&distro=esm-apps/jammy
Affected versions
=2.10.7+merged+base+2.10.8+dfsg-1=2.10.7+merged+base+2.10.8+dfsg-1ubuntu0.1~esm1=2.10.7+merged+base+2.10.8+dfsg-1ubuntu0.1~esm4
Ubuntu:24.04:LTSmore threats →ghsa
ansible
pkg:deb/ubuntu/ansible?arch=source&distro=noble
Affected versions
=7.7.0+dfsg-1=7.7.0+dfsg-3=9.2.0+dfsg-0ubuntu4=9.2.0+dfsg-0ubuntu5
Ubuntu:24.04:LTSmore threats →ghsa
ansible-core
pkg:deb/ubuntu/ansible-core?arch=source&distro=noble
Affected versions
=2.14.9-2=2.14.11-1=2.14.11-2=2.14.13-1=2.16.3-0ubuntu1=2.16.3-0ubuntu2
Ubuntu:26.10more threats →ghsa
ansible
pkg:deb/ubuntu/ansible?arch=source&distro=stonking
Affected versions
=13.1.0+dfsg-1ubuntu1=13.4.0+dfsg-1
Ubuntu:26.10more threats →ghsa
ansible-core
pkg:deb/ubuntu/ansible-core?arch=source&distro=stonking
Affected versions
=2.20.1-1=2.21.1~rc1-1=2.21.1~rc1-2=2.21.1~rc1-2ubuntu1=2.22.0~beta2-1
Ubuntu:26.04:LTSmore threats →ghsa
ansible
pkg:deb/ubuntu/ansible?arch=source&distro=resolute
Affected versions
=12.0.0~b1+dfsg-1=12.0.0+dfsg-1=12.2.0+dfsg-1=13.1.0+dfsg-1=13.1.0+dfsg-1ubuntu1
Ubuntu:26.04:LTSmore threats →ghsa
ansible-core
pkg:deb/ubuntu/ansible-core?arch=source&distro=resolute
Affected versions
=2.19.0-1ubuntu1=2.19.4-1=2.20.1-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: 10/17/2026, 23:21:53 UTC

Technical Analysis

The community.general Ansible collection's OCAPI modules (ocapi_command, ocapi_info) contain a security flaw where the shared OCAPI request helper disables TLS certificate validation by default and offers no parameter to enable it. As a result, HTTP Basic-Auth credentials are sent over HTTPS without proper certificate verification. An attacker on the network path can present any certificate, intercept the session, capture credentials, and tamper with responses from the OCAPI-managed storage or enclosure device.

Potential Impact

An attacker with network access between the Ansible controller and the OCAPI-managed device can perform man-in-the-middle attacks by presenting arbitrary TLS certificates. This enables interception of HTTP Basic-Auth credentials, compromising confidentiality and integrity of the session. The vulnerability impacts confidentiality and integrity but does not affect availability.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using the vulnerable OCAPI modules in untrusted or exposed network environments. Consider using alternative methods or modules that enforce TLS certificate validation.

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

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-87872
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:Pro:14.04:LTS","Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:Pro:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.10","Ubuntu:26.04:LTS"]
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6ad3f54b2cdf04f65665867e

Added to database: 10/17/2026, 22:23:07 UTC

Last enriched: 10/17/2026, 23:21:53 UTC

Last updated: 10/17/2026, 23:21:53 UTC

Views: 2

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