Skip to content
Info disclosure Advisory Advanced CVE-2026-11289

Side-channel information leakage in Paint (CVE-2026-11289)

NinePieceImagePainter fails to enforce the EXIF orientation privacy invariant for cross-origin images when image-orientation: none is set, creating a paint-timing side channel. An attacker could infer private EXIF orientation metadata from cross-origin images by measuring render times.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 51 days

Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the Chrome Security team.

Overview: NinePieceImagePainter fails to enforce the EXIF orientation privacy invariant for cross-origin images when image-orientation: none is set. This inconsistency creates a paint-timing side channel that allows attackers to infer private EXIF orientation metadata from cross-origin images.

Affected files:

  • third_party/blink/renderer/core/paint/nine_piece_image_painter.cc

Estimated timestamp from git blame: 2024-11-14

Description

Blink enforces a privacy invariant that opaque-origin (cross-origin without CORS) images must always have their EXIF orientation respected, regardless of the CSS image-orientation property. This prevents attackers from using EXIF rotation metadata as a cross-origin oracle.

There is a potential flaw in how NinePieceImagePainter (which handles border-image, -webkit-mask-box-image, etc.) handles this invariant. While calculating the CSS pixel size (unzoomed_image_size), the code correctly calls ForceOrientationIfNecessary() to apply the mandatory rotation for cross-origin images. However, when calculating the native image size (image_size) inside the PaintPieces helper, it bypasses this security check and fetches the raw dimensions based directly on the attacker-controlled CSS property (style.ImageOrientation()).

When a cross-origin image with transposing EXIF orientation (e.g., rotated 90 degrees) is rendered with image-orientation: none, this discrepancy causes unzoomed_image_size to be rotated (Height x Width) while image_size remains unrotated (Width x Height). This creates a skewed slice_scale vector which corrupts the NinePieceImageGrid calculations, significantly altering the tile repetition counts for border edges.

Potential Exploitation Steps

Note: These are suggested steps based on static analysis. We do not currently have the capability to run a live proof of concept.

  1. An attacker embeds a cross-origin image (e.g., from a user's private photo gallery) on their site without CORS.
  2. The attacker applies the image to a large div using border-image, and sets border-image-repeat: repeat; and image-orientation: none;.
  3. The browser renders the border. Because of the missing security check in PaintPieces, the skewed slice_scale alters the number of times the image slices are tiled (e.g., squishing or stretching the tiles).
  4. The attacker toggles the CSS between image-orientation: none and image-orientation: from-image and measures the render times using requestAnimationFrame.
  5. Because the tiling count and draw complexity change significantly when transposing EXIF data is present, the rendering times will differ measurably. The attacker uses this timing delta to infer the private transposing EXIF state of the cross-origin image.

Suggested Fix

In third_party/blink/renderer/core/paint/nine_piece_image_painter.cc, the orientation preference should be evaluated once at the top of NinePieceImagePainter::Paint using style_image->ForceOrientationIfNecessary(style.ImageOrientation()). This forced orientation value should then be passed down into PaintPieces and used for all size calculations (like image.SizeAsFloat()) and drawing operations to ensure cross-origin privacy invariants are consistently maintained across the entire drawing pipeline.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the code calculates the native image size without applying the mandatory orientation for cross-origin images, while the CSS pixel size does apply it, causing inconsistent scaling and timing differences.

Impact

An attacker could infer private EXIF orientation metadata from cross-origin images, but the report notes this is based on static analysis without a live proof of concept.

What the attacker needed

Victim visits attacker's site; cross-origin image without CORS; image has transposing EXIF orientation

The fix

The orientation preference should be evaluated once at the top of NinePieceImagePainter::Paint using style_image->ForceOrientationIfNecessary(style.ImageOrientation()) and passed down to PaintPieces for all size calculations and drawing operations.

How it was found

  1. An attacker embeds a cross-origin image on their site without CORS.
  2. The attacker applies the image to a large div using border-image, and sets border-image-repeat: repeat; and image-orientation: none;.
  3. The browser renders the border, and the skewed slice_scale alters the number of times the image slices are tiled.
  4. The attacker toggles the CSS between image-orientation: none and image-orientation: from-image and measures the render times using requestAnimationFrame.
  5. The attacker uses the timing delta to infer the private transposing EXIF state of the cross-origin image.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When you view a photo on a website, the browser sometimes rotates it based on hidden metadata called EXIF orientation. To protect privacy, browsers must not let other websites detect this rotation for images they don't own. This report suggests a flaw where a specific CSS feature (border-image) could leak that rotation through timing differences, letting an attacker guess private photo orientations.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.