Skip to main content
Vulnerability Database/CVE-2026-112103

CVE-2026-112103: Fat-Free Framework Certificate Validation Flaw

CVE-2026-112103 is an improper certificate validation flaw in Fat-Free Framework's HTTP client that could enable man-in-the-middle attacks. This post explains the technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-112103 Overview

CVE-2026-112103 affects the f3-factory fatfree-core PHP framework in versions up to and including 3.9.2. The vulnerability resides in the _curl function of web.php, which implements the HTTP Client component. The code disables TLS peer certificate verification by default, resulting in improper certificate validation [CWE-287]. A remote attacker positioned on the network path can abuse this weakness to intercept or manipulate HTTPS traffic initiated by applications built on Fat-Free Framework. Exploitation requires network interception capabilities, and the vendor characterizes exploitation as difficult. Version 3.9.3 resolves the issue by enabling peer verification by default.

Critical Impact

Applications issuing outbound HTTPS requests through the Fat-Free HTTP Client accept forged or invalid TLS certificates, enabling man-in-the-middle interception of request and response data.

Affected Products

  • f3-factory fatfree-core versions up to 3.9.2
  • Applications built on the Fat-Free Framework using the HTTP Client (Web class)
  • Fixed in fatfree-core version 3.9.3

Discovery Timeline

  • 2026-10-19 - CVE-2026-112103 published to the National Vulnerability Database
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-112103

Vulnerability Analysis

The vulnerability is an Improper Certificate Validation flaw [CWE-287] in the HTTP client wrapper around libcurl. In vulnerable releases, the _curl method inside web.php explicitly sets CURLOPT_SSL_VERIFYPEER to FALSE. This instructs libcurl to skip verification of the server's TLS certificate chain against trusted certificate authorities.

As a result, any HTTPS request issued via the Fat-Free Web component accepts self-signed, expired, or attacker-controlled certificates. The hostname check (CURLOPT_SSL_VERIFYHOST) remains set to 2, but hostname validation without peer verification does not protect against TLS interception.

The vendor rates exploitation as difficult because an attacker must obtain a privileged position on the network between the application and the remote endpoint it contacts.

Root Cause

The root cause is an insecure default in the HTTP client configuration. By hardcoding CURLOPT_SSL_VERIFYPEER to FALSE, the framework overrode libcurl's secure default and offered no exposed option for developers to re-enable verification without patching the library.

Attack Vector

An attacker on the network path between the Fat-Free application and a remote HTTPS endpoint can present a crafted certificate. The vulnerable client accepts the certificate without validating the issuing chain. The attacker can then read, modify, or inject content into HTTPS requests and responses, including credentials, API tokens, and application data forwarded through the HTTP client.

php
// Patch from commit a2c755c8dc9ad0eb7d5fd261b09aff90f649433c
//              return strlen($line);
//          }
//      );
-        curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,2);
-        curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,FALSE);
+        curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,2);
+        curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,TRUE);
+        if (isset($options['before_exec'])) {
+            call_user_func_array($options['before_exec'], [$curl,$headers]);
+        }
//      ob_start();
//      curl_exec($curl);
//      $err=curl_error($curl);

Source: GitHub Commit a2c755c. The patch flips CURLOPT_SSL_VERIFYPEER to TRUE and introduces a before_exec hook so developers can customize cURL options prior to execution.

Detection Methods for CVE-2026-112103

Indicators of Compromise

  • Outbound HTTPS connections from PHP application hosts terminating at unexpected IP addresses or TLS certificates that do not match the intended endpoint.
  • Presence of curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,FALSE) within deployed web.php files of fatfree-core 3.9.2 or earlier.
  • Composer lock files or vendor directories pinned to f3-factory/fatfree-core versions at or below 3.9.2.

Detection Strategies

  • Inventory PHP dependencies with composer show f3-factory/fatfree-core and flag any installation at version 3.9.2 or lower.
  • Perform static analysis of deployed source trees for the vulnerable CURLOPT_SSL_VERIFYPEER assignment inside web.php.
  • Use TLS inspection tooling to detect application traffic that accepts invalid or untrusted certificates during controlled test interception.

Monitoring Recommendations

  • Monitor egress HTTPS flows from application servers for anomalous certificate issuers or sudden changes in server certificate fingerprints.
  • Alert on DNS or route changes affecting external APIs the Fat-Free application consumes.
  • Correlate web application logs with network telemetry to identify unexpected redirection of outbound integrations.

How to Mitigate CVE-2026-112103

Immediate Actions Required

  • Upgrade f3-factory/fatfree-core to version 3.9.3 or later across all affected applications.
  • Audit application code for any explicit overrides that reintroduce CURLOPT_SSL_VERIFYPEER = FALSE after the upgrade.
  • Rotate credentials, API keys, and tokens that may have been transmitted through the vulnerable HTTP client over untrusted networks.

Patch Information

The fix is committed as a2c755c8dc9ad0eb7d5fd261b09aff90f649433c and shipped in the GitHub Release 3.9.3. The patch enables CURLOPT_SSL_VERIFYPEER by default and adds a before_exec callback for per-request cURL customization. Additional context is available in GitHub Issue #412 and the VulDB CVE-2026-112103 entry.

Workarounds

  • If upgrading immediately is not possible, apply the upstream patch manually to web.php so CURLOPT_SSL_VERIFYPEER is set to TRUE.
  • Restrict outbound HTTPS traffic from application servers to known, trusted destinations via egress firewall rules.
  • Route sensitive outbound requests through a hardened forward proxy that enforces TLS certificate validation independently.
bash
# Upgrade fatfree-core to the patched release
composer require f3-factory/fatfree-core:^3.9.3
composer update f3-factory/fatfree-core

# Verify the installed version
composer show f3-factory/fatfree-core | grep versions

# Confirm peer verification is enabled in the deployed file
grep -n "CURLOPT_SSL_VERIFYPEER" vendor/f3-factory/fatfree-core/web.php

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.