/

CVE-2026-105222

Severity:

HIGH RISK

(7.4)

Improper TLS Validation (CWE-295) in Google Maps Laravel

CVE-2026-105222

Deferred

Vulnerability type

Category:

Improper Certificate Validation

CWE:

CWE-295

Impact:

Traffic Interception, Credential Exposure, and Response Tampering

Severity:

HIGH RISK

(7.4)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

The alexpechkarev/google-maps Laravel package disables TLS certificate verification by default for Google Maps web-service requests. An on-path attacker may present a fraudulent certificate, intercept traffic, steal API keys included in request URLs, and alter responses.

Affected context

The vulnerability occurs in Laravel applications using the package's bundled configuration with ssl_verify_peer set to FALSE. This setting is passed to the cURL CURLOPT_SSL_VERIFYPEER option, allowing HTTPS connections to proceed without validating the server certificate. Risk is highest when requests traverse an attacker-controlled or otherwise compromised network.

Exploit preconditions

  • Attack surface: Outbound HTTPS requests from the Laravel application to Google Maps web services
  • Required access: Network position sufficient to observe or interfere with application traffic
  • Trigger point: A package-generated Google Maps request made while certificate verification is disabled
  • Why exploitation is possible: The client accepts certificates without confirming that they are trusted and match the intended server

Why this happens

The underlying issue is a failure to enforce peer certificate validation for TLS connections. Setting CURLOPT_SSL_VERIFYPEER to disabled causes the application to trust an unverified endpoint, mapping to CWE-295: Improper Certificate Validation. This insecure pattern weakens HTTPS from authenticated transport into an encrypted but potentially unauthenticated channel.

Potential impact

  • An on-path attacker may intercept Google Maps web-service requests
  • The Google Maps API key may be exposed through query-string parameters
  • An attacker could tamper with responses returned to the application
  • Application behavior or displayed map data could be altered
  • Exposed API credentials could support unauthorized API usage or increased service costs

General mitigation guidance

Mitigation typically focuses on making certificate validation mandatory and reducing the sensitivity of data sent through requests.

Common defensive patterns include:

  • Enable TLS peer and host-name verification by default
  • Use trusted system or application certificate authorities rather than accepting arbitrary certificates
  • Treat certificate-verification failures as connection failures
  • Avoid placing API credentials in URLs when a safer supported authentication mechanism is available
  • Restrict API keys by service, application, environment, and permitted origins where supported
  • Apply least-privilege controls and monitor usage for unexpected destinations, volume, or geography
  • Prevent deployment configuration from silently overriding secure transport defaults

How teams detect issues like this

Organizations commonly detect this class of issue through:

  • Static analysis rules for CURLOPT_SSL_VERIFYPEER set to false or equivalent TLS verification-disabling options
  • Code review checks for HTTP client configurations that accept untrusted certificates
  • Searches for package configuration values such as ssl_verify_peer: false
  • Runtime monitoring for certificate-validation errors, unexpected proxy paths, or anomalous API-key usage
  • Policy enforcement requiring authenticated TLS for outbound service integrations

Automated security review tools can help identify insecure transport settings during development and CI workflows.

Sources

SourceLink
github.comgithub.com/alexpechkarev/google-maps
github.comgithub.com/alexpechkarev/google-maps/blob/v12.14/src/WebService.php#L267-L269
github.comgithub.com/alexpechkarev/google-maps/blob/v12.16/src/config/googlemaps.php#L28
github.comgithub.com/alexpechkarev/google-maps/issues/123
vulncheck.comvulncheck.com/advisories/alexpechkarev-google-maps-through-12.16-disabled-tls-certificate-verification-via-ssl-verify-peer

Frequently asked

questions

It can be exploited by an attacker positioned on the network path between the Laravel application and the Google Maps service. It is not generally an unauthenticated direct attack against the application itself.

The attacker generally needs the ability to observe and interfere with outbound network traffic, such as through a malicious access point, compromised proxy, or hostile network segment.

Require TLS peer and host-name verification for every outbound service request and use a trusted certificate-validation configuration.

Use secure-by-default HTTP clients, prohibit disabled certificate verification through code and configuration policies, protect API keys, and monitor outbound requests for unexpected interception or usage patterns.

Find out what's already
exploitable in your codebase.